package org.cll.lagou.study.imvctest.service.impl;

import org.cll.lagou.study.imvc.annotation.IService;
import org.cll.lagou.study.imvc.config.AjaxResult;
import org.cll.lagou.study.imvctest.service.IDemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/6/21 14:53
 */
@IService
public class IDemoServiceImpl implements IDemoService {

    private static final Logger logger = LoggerFactory.getLogger(IDemoServiceImpl.class);

    @Override
    public AjaxResult query(String name) {
        logger.info("====== name = {}", name);
        AjaxResult ajaxResult = new AjaxResult();
        ajaxResult.setSuccess(true);
        ajaxResult.setInfo(name);
        return ajaxResult;
    }
}
